home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / sbprolog / v3 / sim.lha / sim / builtin / builtin.h < prev    next >
C/C++ Source or Header  |  1990-08-15  |  3KB  |  113 lines

  1. /************************************************************************
  2. *                                    *
  3. * The SB-Prolog System                            *
  4. * Copyright SUNY at Stony Brook, 1986; University of Arizona, 1987    *
  5. *                                    *
  6. ************************************************************************/
  7.  
  8. /*-----------------------------------------------------------------
  9. SB-Prolog is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY.  No author or distributor
  11. accepts responsibility to anyone for the consequences of using it
  12. or for whether it serves any particular purpose or works at all,
  13. unless he says so in writing.  Refer to the SB-Prolog General Public
  14. License for full details.
  15.  
  16. Everyone is granted permission to copy, modify and redistribute
  17. SB-Prolog, but only under the conditions described in the
  18. SB-Prolog General Public License.   A copy of this license is
  19. supposed to have been given to you along with SB-Prolog so you
  20. can know your rights and responsibilities.  It should be in a
  21. file named COPYING.  Among other things, the copyright notice
  22. and this notice must be preserved on all copies. 
  23. ------------------------------------------------------------------ */
  24. /* builtin.h */
  25.  
  26. #define  CALL              10
  27. #define  LOAD              11
  28. #define     GET_SIMPATH       12
  29. #define  STLOOKUP       14
  30. #define  WRITEPTR       15
  31. #define  RESET             16
  32. #define  REWRITE           17
  33. #define  GET0              18
  34. #define  GET               19
  35. #define  SKIP              20
  36. #define  READ              21
  37. #define  READNAME          22
  38. #define  CLOSE             23
  39. #define  PUT               24
  40. #define  TAB               25
  41. #define  NL                26
  42. #define  ACCESS            27
  43. #define  FILEERRORS        28
  44. #define  NOFILEERRORS      29
  45. #define  SEE               30
  46. #define  SEEING            31
  47. #define  SEEN              32
  48. #define  TELL              33
  49. #define  TELLING           34
  50. #define  TOLD              35
  51.  
  52. #define  STATISTICS0       40
  53. #define  STATISTICS        41
  54. #define  SYMTYPE           42
  55. #define  HASHVAL           43
  56.  
  57. #define  SUBSTRING         51
  58. #define  SUBNUMBER         52
  59. #define  SUBDELIM          53
  60. #define  CONLENGTH         54
  61.  
  62. #define  WRITE4            59
  63. #define  ARITH             60
  64. #define  FLOATC            61
  65.  
  66. #define  REAL              62
  67. #define  FLOOR0            63
  68. #define  VAR               64
  69. #define  NONVAR            65
  70. #define  ATOM              66
  71. #define  INTEGER           67
  72. #define  ATOMIC            68
  73. #define  ARITY             69
  74. #define  CPUTIME           70
  75. #define  STATS             71
  76. #define  DBREF           72
  77. #define  COMPARE           73
  78. #define  SAVE              74
  79. #define  RESTORE           75
  80. #define  ALLOC_BUFF        76
  81. #define  BUFF_CODE         77
  82. #define  TRIMBUFF          79
  83.  
  84. #define  ARG0              80
  85. #define  FUNCTOR0          81
  86. #define  SYSTEM0           82
  87. #define  SYSCALL           83
  88. #define  BLDSTR            84
  89. #define  MKSTR             85
  90. #define  BLDATOM           98
  91. #define  NAME0             99
  92. #define  ERRNO            101
  93.  
  94. #define  TRACE            110
  95. #define  PILTRACE         111
  96. #define  UNTRACE          112
  97. #define  FLAGS            113
  98.  
  99. #define  TERMREP          127
  100. #define  NUMBER           128
  101. #define  STRUCTURE        129
  102. #define  WRITEQNAME       130
  103. #define  WRITENAME        133
  104.  
  105. #define  CURSES           134               /* for curses interface */
  106.  
  107. #define  NEXT_TOKEN       135
  108.  
  109. #include   "../sim.h"
  110. #include   "../aux.h"
  111.  
  112. extern int (*branch_table[])();
  113.